package com.wxproject.demo.Intetcepter;
import org.apache.shiro.authc.AuthenticationToken;

public class JwtToken implements AuthenticationToken {

    private String token;
    private String refreshToken;
    public JwtToken(String jwt,String refreshToken){
        this.token = jwt;
        this.refreshToken = refreshToken;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

    @Override
    public Object getPrincipal() {
        return refreshToken;
    }
}
